import request from '@/utils/request'

export function getSurveyPage(data) {
  return request({
    url: '/survey/page',
    method: 'post',
    data
  })
}

export function getSurveyPageInfo(data) {
  return request({
    url: '/survey/page/info',
    method: 'post',
    data
  })
}

export function getSurveyDetail(data) {
  return request({
    url: '/survey/details',
    method: 'post',
    data
  })
}

export function updateSurvey(data) {
  return request({
    url: '/survey/update',
    method: 'post',
    data
  })
}

export function auditSurvey(data) {
  return request({
    url: '/survey/audit',
    method: 'post',
    data
  })
}

//获取危险点
export function getSurveyDangerPointes(data) {
  return request({
    url: '/survey/dangerPoints',
    method: 'post',
    data
  })
}


export function exportSurvey(data) {
  return request({
    url: '/survey/export',
    method: 'post',
    data,
    responseType: 'blob'
  })
}
